import * as Api from 'src/api/net';

const MOCK_HOST = "http://localhost:3000";

const URL_Demo_List: URL_MOCK = {
    url: '/demo_list.do',
    mock: true,
    mockHost: MOCK_HOST //统一模块配置, 或者单独配置
}

const URL_Tree_data: URL_MOCK = {
    url: '/tree_data',
    mock: true,
    mockHost: MOCK_HOST //统一模块配置, 或者单独配置
}

/** 验证是否登录 */
export const ajaxDemoList = (url: string, listData: string, func: any) => {
    Api.AjaxPost(Config.ajaxUrl + url, listData, func);
}

export const ajaxTreeData = (id: number | string, func: any) => {
    // Api.AjaxPost(Api.urlHandler(URL_Tree_data), { id: id }, func);
}